package cn.wolfcode.domain;


import com.alibaba.druid.support.json.JSONUtils;
import lombok.Getter;
import lombok.Setter;

import java.util.HashMap;

@Getter
@Setter
public class SystemDictionaryItem {

    //ID
    private Long id;
    //所属目录ID
    private Long parentId;
    //标题
    private String title;
    //序号
    private Integer sequence;

    public String getJson(){
        HashMap<String,Object> map=new HashMap<>();
        map.put("id",id);
        map.put("parentId",parentId);
        map.put("sequence",sequence);
        map.put("title",title);
        return JSONUtils.toJSONString(map);
    }
}